title

fun title(title: Text): ConfigAction.Builder

Sets the title of the widget. This will be a static title, unchanging based on state.

Return

this builder

Author

fzzyhmstrs

Since

0.5.0

Parameters

title

Text the button widget title


fun title(titleSupplier: Supplier<Text>): ConfigAction.Builder

Sets the title of the widget. This can be dynamically provided as needed, the title is polled from the supplier every frame.

Return

this builder

Author

fzzyhmstrs

Since

0.5.0

Parameters

titleSupplier

Supplier<Text> the button widget title supplier